<?php

namespace App\Http\Controllers\Ad;

use App\Http\Controllers\BaseController;
use App\Models\AdPrice;
use Illuminate\Http\Request;

class PriceController extends BaseController
{
    public function index(Request $request)
    {
        $param = $this->validate($request,[
            'ad_category_id' => 'required',
            'ad_hierarchy_id' => 'required',
        ]);

       $price =  AdPrice::query()->where($param)->first(['price']);

       return $this->success($price);
    }

}
